@echo off
set /p choice=please input(1): 
set TAO="E:\_proj\_opendds\ACE_wrappers\TAO"


echo start tao_cosnaming
start "tao_cosnaming" cmd /c %TAO%\orbsvcs\Naming_Service\tao_cosnaming.exe -ORBListenEndpoints iiop://localhost:2819


timeout /t 1 >nul
echo start MessengerServer.exe
start "MessengerServer" cmd /c %TAO%\\orbsvcs\DevGuideExamples\NamingService\Messenger\MessengerServer.exe -ORBInitRef NameService=corbaloc:iiop:localhost:2819/NameService

timeout /t 2 >nul
echo start MessengerClient.exe
timeout /t 4 >nul
start "MessengerClient" cmd /k %TAO%\\orbsvcs\DevGuideExamples\NamingService\Messenger\MessengerClient.exe -ORBInitRef NameService=corbaloc:iiop:localhost:2819/NameService
